package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.AddressBook;

import java.util.List;

/**
 * @author Xiao
 * @date 2021/9/29
 */
public interface AddressBookService extends IService<AddressBook> {
    List<AddressBook> addressListApi();
    boolean addAddressApi(AddressBook addressBook);
    AddressBook getDefaultAddressApi();
    boolean setDefaultAddressApi(AddressBook addressBook);
    AddressBook addressFindOneApi(Long id);
    boolean updateAddressApi(AddressBook addressBook);
    boolean deleteAddressApi(Long ids);
    AddressBook addressLastUpdateApi();
}
